package com.zzyang.mybatis.jdbc.core;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * 决定 {@link AbstractRoutingDataSource#determineCurrentLookupKey()}
 *
 * @author zhuoziyang
 * @date 2021/4/9 20:14
 */
public interface RoutingDataSourceKeyDecider {

    /**
     * 根据请求获取数据源id
     *
     * @return
     */
    String decideRoutingKey();

}
